@extends('admin.layout.main')
@section('content')
    <div class="main-content-inner">
        <div class="breadcrumbs ace-save-state" id="breadcrumbs">
            <ul class="breadcrumb">
                <li>
                    <i class="ace-icon fa fa-home home-icon"></i>
                    <a href="/admin/index">首页</a>
                </li>

                <li>
                    <a href="/admin/ability_index">资源管理</a>
                </li>
                <li class="active"><a href="{{ url('/admin/ability_index') }}">资源列表</a></li>
            </ul><!-- /.breadcrumb -->

        </div>

        <div class="page-content">


            <div class="row">
                <div class="col-xs-12">
                    <!-- PAGE CONTENT BEGINS -->
                    <form class="form-horizontal" role="form" name="linkform" method="post"  action="/admin/ability_store">
                       {{csrf_field()}}
                        <div class="form-group">
                            <label class="col-sm-3 control-label no-padding-right" for="form-field-1">资源名称 </label>

                            <div class="col-sm-9">
                                <input type="text" name="title" id="form-field-1" placeholder="填写资源名称"
                                       class="col-xs-10 col-sm-5"/>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label no-padding-right" for="form-field-select-1"> 资源 </label>

                            <div class="col-sm-9">
                                <select class="col-xs-10 col-sm-5" id="form-field-select-1" name="name">
                                    <option value="">请选择资源</option>
                                    @foreach($list as $item)
                                        <option value="{{$item['name']}}">{{$item['name']}}</option>
                                    @endforeach
                                </select>
                            </div>
                        </div>
                        <div class="space-4"></div>

                        <div class="clearfix form-actions" style="margin-top: 80px">
                            <div class="col-md-offset-3 col-md-9">
                                <button id="submitBtn" class="btn btn-info" type="submit">
                                    <i class="ace-icon fa fa-check bigger-110"></i>
                                    提交
                                </button>

                                &nbsp; &nbsp; &nbsp;
                                <button class="btn" type="reset">
                                    <i class="ace-icon fa fa-undo bigger-110"></i>
                                    重置
                                </button>
                            </div>
                        </div>
                    </form>
                    <!-- PAGE CONTENT ENDS -->
                </div><!-- /.col -->
            </div><!-- /.row -->
        </div><!-- /.page-content -->
    </div>

    <script>


    </script>
@endsection